<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="mall/advert/include::header"></head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/css/bootstrap-select.min.css">
<link rel="stylesheet" type="text/css" href="/css/plugins/layui/layui.css"/>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>返佣添加</h5>
					</div>
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<div class="form-group">
								<label class="col-sm-3 control-label">名称:</label>
								<div class="col-sm-8">
									<input id="name" name="name" class="form-control" type="text">
								</div>
							</div>

							<div class="form-group">
							<label class="col-sm-3 control-label">角色:</label>
								<div class="col-sm-8">
											<label class="radio-inline">
												<input type="radio" name="referralsRole"  
												id="referralsRole"   value="1"/>商户
											</label>
											<label class="radio-inline">
												<input type="radio" name="referralsRole"
												 id="referralsRole"  value="2" />业务员/门店
											</label>
										</div>
							</div>
							
							
							<div class="form-group">
							<label class="col-sm-3 control-label">类型:</label>
								<div class="col-sm-8">
											<label class="radio-inline">
												<input type="radio" name="type"  
												id="type"   value="0"/>推荐
											</label>
											<label class="radio-inline">
												<input type="radio" name="type"
												 id="type"  value="1" />代理
											</label>
										</div>
							</div>
						


							<div class="form-group">
								<label class="col-sm-3 control-label">版本:</label>
									<div class="col-sm-8">
									<select name="projectId" id="projectId" onchange="changeVal()" class="form-control">
								    <option value="">--请选择--</option>
								<option th:each="item: ${list}" th:text="${item.name}"
										th:value="${item.id}"></option>
							</select>
							</div>
							</div>
							

							
							<div class="form-group">
								<label class="col-sm-3 control-label">直推人数:</label>
								<div class="col-sm-8">
									<input id="directNum" name="directNum" class="form-control" type="number">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">直推返佣比例:</label>
								<div class="col-sm-8">
									<input id="directRatio" name="directRatio" class="form-control" type="number">
								</div>
							</div>
							
							<!-- <div class="form-group">
								<label class="col-sm-3 control-label">间接流水人数:</label>
								<div class="col-sm-8">
									<input id="indirectNum" name="indirectNum" readonly="readonly" class="form-control" type="number">
								</div>
							</div> -->
							
							<div class="form-group">
								<label class="col-sm-3 control-label">间接流水返佣比例:</label>
								<div class="col-sm-8">
									<input id="indirectRatio" name="indirectRatio" class="form-control" type="number">
								</div>
							</div>

                              <input id="projectName" name="projectName" class="form-control" type="hidden">
							<div class="form-group text-center">
								<div class="col-sm-8 col-sm-offset-2">
									<button type="submit" class="btn btn-primary"><i class="fa fa-check"></i>提交</button>
									<div class="btn btn-danger" onclick="closeDow()"><i class="fa fa-remove"></i> 关闭</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="mall/advert/include::footer"></div>
	<script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/js/bootstrap-select.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/js/i18n/defaults-*.min.js"></script>
	<script type="text/javascript" src="/js/appjs/projectexp/commissionratio/add.js"></script>
	<script type="text/javascript" src="/js/plugins/layui/layui.js"></script>
	<script type="text/javascript">
		function closeDow() {
			var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
			parent.layer.close(index);
		}
	</script>
</body>

</html>
